﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="WarningSetup.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.WarningSetup" %>
<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="tabnav">
        <ul>
            <li class="active"><a href="#">药品预警设置</a></li>    
             <li><a href="WarningSetupTime.aspx">响应时间预警设置</a></li>
            <li><a href="WarningStart.aspx">已启动的预警</a></li>
            <li><a href="WarningStop.aspx">禁用的预警</a></li>
        </ul>
         <ul>
            <li class="active">
                <a href="WarningSetupForHospital.aspx" >医院药品规则制定</a>
            </li>
            <li >
                <a href="WarningSetupForCompany.aspx" >企业药品规则制定</a>
            </li>            
        </ul>
    </div>
    <div id="tabcontent">
    
         <table>
                  <tr>
                      <th>
                          地区
                      </th>
                      <td>
                         <asp:TextBox ID="txtArea" runat="server"></asp:TextBox>
                      </td>
                      <td>
                       <%-- <asp:Button ID="SelectArea" runat="server"  Text="选择地区" CssClass="btn"/>--%><input type="button" value="选择地区" class="btn"onclick="window.open('../Common/SelectArea.aspx','selectReciever','width=300,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0');"/>
                      </td>
                     
                  </tr>
                   <tr>
                    <th>
                          企业
                      </th>
                      <td>
                          <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>                         
                      </td>
                      <td>
                         <input type="button" value="选择地区" class="btn"onclick="window.open('../Common/SelectCompany.aspx','selectReciever','width=300,height=450,resizable=0,scrollbars=0, status=0, toolbar=0, menubar=0');"/>
                         <%-- <asp:Button ID="btnSelectCompany" runat="server" CssClass="btn"  Text="选择企业"/>--%>
                      </td>
                    <th>
                          医院
                      </th>
                      <td>
                          <asp:TextBox ID="txtHospital" runat="server"></asp:TextBox>                         
                      </td>
                      <td>
                          <asp:Button ID="SelectHospital" runat="server" CssClass="btn"  Text="选择医院"/>
                      </td>
                   </tr>
                  <tr>
                      <th>
                          药品类别</th>
                      <td>
                          <asp:TextBox ID="txtDrugSort" runat="server"></asp:TextBox>
                          <input value="精神麻类" />(点击输入框选择)
                      </td>
                      <td>
                          <asp:Button ID="btnSelectDrugSort" Text="选择药品类别"  runat="server" CssClass="btn"/>
                      </td>
                          <th>
                          药品名称
                          </th>
                      <td>
                          <asp:TextBox ID="txtDrug" runat="server"></asp:TextBox>
                      </td>
                      <td>
                      <asp:Button ID="Button1" Text="选择药品"  runat="server" CssClass="btn"/>
                          <input type="button" value="选择药品" class="btn" />                           
                      </td>
                  </tr>
                 
                  <tr>
                      <th>
                          预警数量</th>
                      <td>
                          <asp:TextBox ID="txtCount" runat="server"></asp:TextBox></td>
                          <th>
                              预警金额</th>
                      <td>
                          <asp:TextBox ID="txtAmount" runat="server"></asp:TextBox></td>
                  </tr>
                   <tr>
                   <th>
                          预警级别
                    </th>
                    <td>
                         <asp:DropDownList ID="ddlLevel"  runat="server">
                            <asp:ListItem Text="一级预警" Value="1"></asp:ListItem>
                             <asp:ListItem Text="二级预警" Value="2"></asp:ListItem>
                             <asp:ListItem Text="三级预警" Value="3"></asp:ListItem>
                         </asp:DropDownList>
                    </td>
                   <th>
                          预警范围
                    </th>
                      <td> 
                        <asp:TextBox ID="txtTimeOfRange" runat="server"></asp:TextBox>
                      <input type="button" runat="server" id="txtTimeOfRangew" />
                      </td>
                      <td>                     
                            <asp:DropDownList ID="ddlTime" runat="server" >
                                <asp:ListItem Text="周" Value="1"></asp:ListItem>
                                <asp:ListItem Text="月" Value="2"></asp:ListItem>
                                <asp:ListItem Text="季度" Value="3"></asp:ListItem>
                                <asp:ListItem Text="年" Value="4"></asp:ListItem>
                            </asp:DropDownList>
                    </td>
                      <td  align="center">                          
                          <asp:Button ID="btnConfirmMessage" runat="server"  Text="制定完毕" CssClass="btn"/>
                      </td>
                  </tr>
              </table>
      <table class="mainlist" cellspacing="0" rules="all" border="1" id="ctl00_ContentPlaceHolder1_gvwChildUserList"
            style="border-collapse: collapse;">
            <tr>
                <th scope="col">
                    序号
                </th>
                <th scope="col">
                    地区</th>
                <th scope="col">
                    医院</th>
                     <th scope="col">
                    药品类别</th>
                    <th scope="col">
                    药品名称</th>
                        <th scope="col">
                            预警数量</th>
                   <th scope="col">
                       预警金额</th>
                         <th scope="col">
                       预警范围</th>
                          <th scope="col">
                       预警级别</th>
                <th scope="col">
                    制定时间</th>
                  
                <th scope="col">
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwChildUserList','addTable_chkAll'); " />
                </th>
            </tr>
            <tr class="row">
                <td>
                    1
                </td>
                <td>南京市</td>
                <td>
                    所有</td>
                <td>
                    &nbsp;精神麻类</td>
                <td>所有</td>
                <td>     1</td>
                <td>     </td>
                 <td>    3 天</td>
                 <td>    一级预警</td>
                <td>     2009-03-12</td>
                <td>     
                    <input id="chkChildUser" name="chkChildUser" 
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwChildUserList','addTable_chkAll');" 
                        type="checkbox" value="p000101" /></td>
            </tr>
        </table>
    </div>
    <asp:GridView  runat="server" ID="gvwMessage" CssClass="mainlist"  AutoGenerateColumns="False"
        EmptyDataText="暂无制定的规则！">
        <Columns>
               <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="AreaName" HeaderText="地区" />
            <asp:TemplateField  HeaderText="类型">
             <ItemTemplate>
                    <asp:Label ID="lblsortname" runat="server" Text='<%#Eval("SortName")%>'></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                 
                    <asp:TextBox ID="txtsortname" runat="server" Text='<%# DataBinder.Eval(Container,"DataItem.SortName") %>'
                        Width="200px"></asp:TextBox>
                </EditItemTemplate>
            </asp:TemplateField> 
             <asp:TemplateField HeaderText="详细规则">
                <ItemTemplate>
                    <a href="">详细规则
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
     <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
             onpagechanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <input type="submit" name="ctl00$ContentPlaceHolder1$btnAddChildUser" value="启用预警"
            id="ctl00_ContentPlaceHolder1_btnAddChildUser" title="启用预警" class="btn" />
        <input type="submit" name="ctl00$ContentPlaceHolder1$btnBatLock" value="删除预警" onclick="if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwChildUserList','请至少选定一个用户！')) {return confirm('确实要批量锁定选定用户？');}return false;"
            id="ctl00_ContentPlaceHolder1_btnBatLock" title="删除预警" class="btn" />
         
    </div>
</asp:Content>
